<!--#include virtual="src/layuiadmin/lib/public.asp"-->
<!DOCTYPE html>
<html>
<head>
  <title>科研数据管理</title>
<%
	easp.include "h.asp"
%>
<link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>
<body>
<%
	pi(session("username"))
%>      <div class="layui-form layui-card-header layuiadmin-card-header-auto">
        <div class="layui-form-item">
          <div class="layui-inline">
			  <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="exp">导出</button>
          </div>
			<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">个人介绍</label>
			<div class="layui-input-block">
			  <textarea name="pi" placeholder="" class="layui-textarea" ><%=easp.var("pi")%></textarea>
			  <input name="username" type="hidden" value="<%=session("username")%>">
			</div>
			</div> 
          <div class="layui-inline">
			  <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="pi">保存</button>
          </div>	
        </div>
      </div>
	<%
		Easp.Echo js1("panel1.html","zbhyjl","9、主办国内、外学术会议、交流情况")
		Easp.Echo js1("panel1.html","cyhyjl","10、参与国内、外学术会议、交流情况")
		Easp.Echo js1("panel1.html","gnwfw","11、国内外访问")
		Easp.Echo js1("panel1.html","kpyz","12、科普宣教或义诊活动")
		Easp.Echo js1("panel1.html","xhrz","13、学会任职")
		Easp.Echo js1("panel1.html","cdjx","14、承担教学任务")
		' Easp.Echo js1("panel1.html","hdry","7、获得荣誉")
		' Easp.Echo js1("panel1.html","hybz","8、主持或参与制定行业标准")
	%> 

  <script src="../../../layuiadmin/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '../../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'useradmin', 'table'], function(){
    var $ = layui.$,form = layui.form,admin = layui.admin,table = layui.table;

    form.on('submit(exp)', function(data){
        var field = data.field; 
		$.post(layui.setter.base + 'lib/reg.asp?now=' + new Date().getTime(), {
			action: "qry2word",
			field
		},
		function(data) {
			if (data == '1') {
				layer.msg("成功!!");
			} else {
				layer.msg("失败！！ "+data);
			}
		});
    })
    form.on('submit(pi)', function(data){
        var field = data.field; 
		$.post(layui.setter.base + 'lib/reg.asp?now=' + new Date().getTime(), {
			action: "savepi",
			field
		},
		function(data) {
			if (data == '1') {
				layer.msg("成功!!");
			} else {
				layer.msg("失败！！ "+data);
			}
		});
    })	
	<%
		dim elem
		elem="zbhyjl"
	%>
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',title: 'ID',width: 60,sort: true,hide:false},
        <%
			dim fielda,fielda2,i
			fielda=split(easp.var("dy_"&elem&"_f"),",")
			fielda2=split(easp.var("dy_"&elem&"_n"),",")
			for i=0 to ubound(fielda)
				Easp.Echo js3("tb1.js",fielda(i),fielda2(i),100)
			next
		%>
        {fixed: 'right',width: 120,align: 'center',toolbar: '#bar_<%=elem%>'}]],
        id: '<%=elem%>',limit: 10,page: true,height: 275
    });	

	<%elem="cyhyjl"%>	
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',title: 'ID',width: 60,sort: true,hide:false},
        <%
			fielda=split(easp.var("dy_"&elem&"_f"),",")
			fielda2=split(easp.var("dy_"&elem&"_n"),",")
			for i=0 to ubound(fielda)
				Easp.Echo js3("tb1.js",fielda(i),fielda2(i),100)
			next
		%>
        {fixed: 'right',width: 120,align: 'center',toolbar: '#bar_<%=elem%>'}]],
        id: '<%=elem%>',limit: 10,page: true,height: 275
    });	
	<%elem="gnwfw"%>
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',title: 'ID',width: 60,sort: true,hide:false},
        <%
			fielda=split(easp.var("dy_"&elem&"_f"),",")
			fielda2=split(easp.var("dy_"&elem&"_n"),",")
			for i=0 to ubound(fielda)
				Easp.Echo js3("tb1.js",fielda(i),fielda2(i),100)
			next
		%>
        {fixed: 'right',width: 120,align: 'center',toolbar: '#bar_<%=elem%>'}]],
        id: '<%=elem%>',limit: 10,page: true,height: 275
    });	
	<%elem="kpyz"%>
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',title: 'ID',width: 60,sort: true,hide:false},
        <%
			fielda=split(easp.var("dy_"&elem&"_f"),",")
			fielda2=split(easp.var("dy_"&elem&"_n"),",")
			for i=0 to ubound(fielda)
				Easp.Echo js3("tb1.js",fielda(i),fielda2(i),100)
			next
		%>
        {fixed: 'right',width: 120,align: 'center',toolbar: '#bar_<%=elem%>'}]],
        id: '<%=elem%>',limit: 10,page: true,height: 275
    });	
	

	<%elem="xhrz"%>	
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',title: 'ID',width: 60,sort: true,hide:false},
        <%
			fielda=split(easp.var("dy_"&elem&"_f"),",")
			fielda2=split(easp.var("dy_"&elem&"_n"),",")
			for i=0 to ubound(fielda)
				Easp.Echo js3("tb1.js",fielda(i),fielda2(i),100)
			next
		%>
        {fixed: 'right',width: 120,align: 'center',toolbar: '#bar_<%=elem%>'}]],
        id: '<%=elem%>',limit: 10,page: true,height: 275
    });	
	<%elem="cdjx"%>	
	table.render({
        elem: '#<%=elem%>',
        url: layui.setter.base + 'lib/reg.asp?action=<%=elem%>',
        cols: [[
        {field: 'id',title: 'ID',width: 60,sort: true,hide:false},
        <%
			fielda=split(easp.var("dy_"&elem&"_f"),",")
			fielda2=split(easp.var("dy_"&elem&"_n"),",")
			for i=0 to ubound(fielda)
				Easp.Echo js3("tb1.js",fielda(i),fielda2(i),100)
			next
		%>
        {fixed: 'right',width: 120,align: 'center',toolbar: '#bar_<%=elem%>'}]],
        id: '<%=elem%>',limit: 10,page: true,height: 275
    });	


	<%
		Easp.Echo js1("add1.js","zbhyjl","添加我的主办")
		Easp.Echo js1("edit1.js","zbhyjl","编辑我的主办")

		Easp.Echo js1("add1.js","cyhyjl","添加我的参与")
		Easp.Echo js1("edit1.js","cyhyjl","编辑我的参与")

		Easp.Echo js1("add1.js","gnwfw","添加我的访问")
		Easp.Echo js1("edit1.js","gnwfw","编辑我的访问")
		
		Easp.Echo js1("add1.js","kpyz","添加我的科普义诊")
		Easp.Echo js1("edit1.js","kpyz","编辑我的科普义诊")
		
		Easp.Echo js1("add1.js","xhrz","添加我的学会任职")
		Easp.Echo js1("edit1.js","xhrz","编辑我的学会任职")
		
		Easp.Echo js1("add1.js","cdjx","添加我的教学任务")
		Easp.Echo js1("edit1.js","cdjx","编辑我的教学任务")
	%>	
  });
  </script>
</body>
</html>
